<?php
class SleekBase_IEWarningModule extends Module {
	public function run () {
		$support = conf('ie_support.style_support');

		# Full IE Support - don't show a warning
		if ($support === true) {
			$this->setView(false);
		}
		# Some or no IE Support
		else {
			# Lend ie-support data from Base
			$ieSupport = $this->getData('ie_support', 'Base');

			$this->setData('condition_open', $ieSupport['fallback_condition_open']);
			$this->setData('condition_close', $ieSupport['fallback_condition_close']);
		}
	}
}
